const EssayModel = require('../do/models/essay');
class EssayService {
    async getEssay(data){
        const {id} = data;
        if(!id){
            return await EssayModel.findAll();
        }
        return await EssayModel.findOne({
            where:{id}
        })
    }
    async createEssay(data){
        const {}
    }
} 
module.exports = new EssayService();